package com.jyxd.web.controller.basic;

import com.jyxd.web.data.common.Result;
import com.jyxd.web.service.assessment.basic.TenantService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/tenant")
public class TenantController {
    private final Logger logger = LoggerFactory.getLogger(TenantController.class);
    private final TenantService tenantService;

    public TenantController(TenantService tenantService) {
        this.tenantService = tenantService;
    }

    @RequestMapping("/list")
    public Result<?> list() {
        return Result.succeed(tenantService.list());
    }
}
